package com.tamecode.chapter05.part10;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SimpleTest {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("bean/chap5-10/beans-02-lifecycle.xml");
        // 关闭容器
        ((ClassPathXmlApplicationContext) context).destroy();
    }

}
